package cn.aticow.springboot.bean;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component//该备注用于标注该类是一个bean
public class Task implements Serializable {
    private Integer id;

    private String task_No;

    private String stationFrom;

    private String stationTo;

    private String fromPar;

    private String toPar;

    private Integer status;

    private Date issuedTime;

    private Date finishTime;

    private String vehicleId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTask_No() {
        return task_No;
    }

    public void setTask_No(String task_No) {
        this.task_No = task_No;
    }

    public String getStationFrom() {
        return stationFrom;
    }

    public void setStationFrom(String stationFrom) {
        this.stationFrom = stationFrom;
    }

    public String getStationTo() {
        return stationTo;
    }

    public void setStationTo(String stationTo) {
        this.stationTo = stationTo;
    }

    public String getFromPar() {
        return fromPar;
    }

    public void setFromPar(String fromPar) {
        this.fromPar = fromPar;
    }

    public String getToPar() {
        return toPar;
    }

    public void setToPar(String toPar) {
        this.toPar = toPar;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getIssuedTime() {
        return issuedTime;
    }

    public void setIssuedTime(Date issuedTime) {
        this.issuedTime = issuedTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public String getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(String vehicleId) {
        this.vehicleId = vehicleId;
    }

    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", task_No='" + task_No + '\'' +
                ", stationFrom='" + stationFrom + '\'' +
                ", stationTo='" + stationTo + '\'' +
                ", fromPar='" + fromPar + '\'' +
                ", toPar='" + toPar + '\'' +
                ", status=" + status +
                ", issuedTime=" + issuedTime +
                ", finishTime=" + finishTime +
                ", vehicleId='" + vehicleId + '\'' +
                '}';
    }
}
